<div id="svn-homepage">
    <h2>{{ title_list_repositories }}</h2>

    {{# is_user_allowed_to_create_repository }}
    <form name="svn-repo-creator" class="form-inline" method="post" action="/plugins/svn/?group_id={{group_id}}&action=create-repository">
        {{{ csrf_input }}}

        <div class="input-append">
            <input type="text"
                id="create-repository-field-name"
                name="repo_name"
                value="{{ repository_name }}"
                placeholder="{{ label_repository_name }}"
                pattern="{{ validate_name }}"
                required
            />
            <input type="submit"
                name="repo_add"
                value="{{ create_repository }}"
                class="btn btn-primary"
            />
        </div>
        <span class="help">{{ help_repository_name }}</span>
    </form>
    {{/ is_user_allowed_to_create_repository }}

    <table class="table table-striped table-bordered">
        <thead>
            <tr>
                <th>{{ table_head_list_repository }}</th>
            </tr>
        </thead>
        <tbody>
            {{# list_repositories }}
                <tr>
                    <td><a href="?roottype=svn&amp;root={{ getFullName }}">{{ getName }}</a></td>
                </tr>
            {{/ list_repositories }}
            {{^ list_repositories }}
                <tr class="empty-table">
                    <td>
                        {{ no_repositories }}
                    </td>
                </tr>
            {{/ list_repositories }}
        </tbody>
    </table>
</div>
